import requests
from lxml import etree

url = 'https://jh.lianjia.com/ershoufang/'
res = requests.get(url)
print(res.status_code)

xhtml = etree.HTML(res.text)
title = xhtml.xpath('//div[@class="title"]/a/text()')
print(title)
gao = xhtml.xpath('//div[@class="houseInfo"]/text()')
print(gao)
zong  = xhtml.xpath('//div[@class="totalPrice totalPrice2"]/span/text()')
print(zong)
dan = xhtml.xpath('//div[@class="unitPrice"]/span/text()')
print(dan)